package day03;

import java.util.Scanner;

public class HomeWork {
    public static void main(String[] args) {
//
//          1.
        int a = 45,b = 54;
        int c = a>b?a:b;
        System.out.println(c);
        int d;
        if (a>b){
            d = a;
        }else {
            d = b;
        }
        System.out.println(d);


//        2.
        int year = 1574;
        if ((year%4==0&&year%100!=0)||year%400==0){
            System.out.println("闰年");

        }else {
            System.out.println("平年");
        }


//        3.
        double score = 45.0;
        if (score>100){
            System.out.println("不合法");
        }else if (score>=90){
            System.out.println("A");
        }else if (score>=80){
            System.out.println("B");
        }else if (score>=60){
            System.out.println("C");
        }else if (score>=0){
            System.out.println("D");
        }else {
            System.out.println("不合法");
        }
//        4.




    }
}
